import request from '@/utils/request'
//  POS客服信息
export function updateAgentInf(data) {
	return request({
		url: '/agent/updateAgentInf',
		method: 'post',
		data
	})
}
// POS代理商渠道查询
export function selectAgentChannelInf(data) {
    return request({
        url: '/posAgent/selectAgentChannelInf',
        method: 'post',
        data
    })
}
// POS代理商数据服务渠道查询
export function selectAgentChannel(data) {
    return request({
        url: '/posAgent/selectAgentChannel',
        method: 'post',
        data
    })
}
// 代理指定渠道终端汇总信息
export function selectTerSumList(data) {
    return request({
        url: '/posTer/selectTerSumList',
        method: 'post',
        data
    })
}

// 终端批量变更活动
export function updateTerActiv(data) {
    return request({
        url: '/posTer/updateTerActiv',
        method: 'post',
        data
    })
}

// 代理商可修改活动终端查询
export function selectTerActivList(data) {
    return request({
        url: '/posTer/selectTerActivList',
        method: 'post',
        data
    })
}
// 渠道下的其他活动列表
export function selectAgentChannelOtherActivity(data) {
    return request({
        url: '/posAgent/selectAgentChannelOtherActivity',
        method: 'post',
        data
    })
}
// 代理商可修改费率终端查询
export function selectTerFeeList(data) {
    return request({
        url: '/posTer/selectTerFeeList',
        method: 'post',
        data
    })
}
// 代理商可划拨终端查询
export function selectTerTranList(data) {
    return request({
        url: '/posTer/selectTerTranList',
        method: 'post',
        data
    })
}
// 代理商直属下级查询
export function selectUnderAgentList(data) {
    return request({
        url: '/posAgent/selectUnderAgentList',
        method: 'post',
        data
    })
}
// 终端批量划拨
export function updateTerTran(data) {
    return request({
        url: '/posTer/updateTerTran',
        method: 'post',
        data
    })
}
// 代理商结算卡信息
export function selectAgentInf(data) {
    return request({
        url: '/posAgent/selectAgentInf',
        method: 'post',
        data
    })
}
// 获取卡Bin信息
export function getCardBin(data) {
    return request({
        url: '/unionfit/getCardBinAgent',
        method: 'post',
        data
    })
}
// 代理商修改结算卡
export function updateBankCardNo(data) {
    return request({
        url: '/agent/updateBankCardNo',
        method: 'post',
        data
    })
}
// 查询机构基础配置
export function selectAgencyConfig(data) {
    return request({
        url: '/agencyConfig/selectAgencyConfig',
        method: 'post',
        data
    })
}
// 终端批量变更费率
export function updateTerFee(data) {
    return request({
        url: '/posTer/updateTerFee',
        method: 'post',
        data
    })
}
// 代理商商户信息查询
export function selectAgentMer(data) {
    return request({
        url: '/posMerchant/selectAgentMer',
        method: 'post',
        data
    })
}
// 商户指定渠道终端列表查询
export function selectTerList(data) {
    return request({
        url: '/posTer/selectTerList',
        method: 'post',
        data
    })
}
// 商户指定渠道商户列表
export function selectMerChannelList(data) {
    return request({
        url: '/posMerchant/selectMerChannelList',
        method: 'post',
        data
    })
}
// 代理指定渠道活动列表
export function selectActivityByChannel(data) {
    return request({
        url: '/posAgent/selectActivityByChannel',
        method: 'post',
        data
    })
}
// 代理商指定渠道成本
export function selectAgentChannelRate(data) {
    return request({
        url: '/posAgent/selectAgentChannelRate',
        method: 'post',
        data
    })
}
// 代理指定渠道交易查询
export function selectPosOrderList(data) {
    return request({
        url: '/posOrder/selectPosOrderList',
        method: 'post',
        data
    })
}
// 代理商指定渠道账户查询
export function selectAgentAccount(data) {
    return request({
        url: '/posAgentAccount/selectAgentAccount',
        method: 'post',
        data
    })
}
// 代理指定渠道指定类型账户历史查询
export function selectAgentAccountHis(data) {
    return request({
        url: '/posAgentAccount/selectAgentAccountHis',
        method: 'post',
        data
    })
}
// 代理所有下级列表
export function selectUnderList(data) {
    return request({
        url: '/posAgent/selectUnderAgentList',
        method: 'post',
        data
    })
}
// 新增代理商
export function addAgent(data) {
    return request({
        url: '/posAgent/addAgent',
        method: 'post',
        data
    })
}
// 通用文件上传
export function addFile(data) {
    return request({
        url: '/file/addFile',
        method: 'post',
        data
    })
}
// 代理开通渠道
export function openChannel(data) {
    return request({
        url: '/posAgent/openChannel',
        method: 'post',
        data
    })
}
// 下级代理可开通渠道列表
export function selectOpenChannel(data) {
    return request({
        url: '/posAgent/selectOpenChannel',
        method: 'post',
        data
    })
}
// 代理修改下级成本
export function updateAgentChannelRate(data) {
    return request({
        url: '/posAgent/updateAgentChannelRate',
        method: 'post',
        data
    })
}
// 代理商收益明细列表
export function selectAgentShareInfo(data) {
    return request({
        url: '/posAgent/selectAgentShareInfo',
        method: 'post',
        data
    })
}
// 代理商可回拨终端查询
export function selectTerCallbackList(data) {
    return request({
        url: '/posTer/selectTerCallbackList',
        method: 'post',
        data
    })
}
// 代理商回拨终端请求
export function updateTerCallback(data) {
    return request({
        url: '/posTer/updateTerCallback',
        method: 'post',
        data
    })
}
// 代理指定渠道全部终端列表查询
export function selectTerAll(data) {
    return request({
        url: '/posTer/selectTerAll',
        method: 'post',
        data
    })
}
// 终端区间划拨
export function updateTerTranRange(data) {
    return request({
        url: '/posTer/updateTerTranRange',
        method: 'post',
        data
    })
}
// 代理商提现接口
export function getCash(data) {
    return request({
        url: '/agent/getCash',
        method: 'post',
        data
    })
}
// 下级代理渠道成本及活动列表
export function selectUnderAgentRate(data) {
    return request({
        url: '/posAgent/selectUnderAgentRate',
        method: 'post',
        data
    })
}
// 所有下级
export function selectUnderAllAgentList(data) {
    return request({
        url: '/posAgent/selectUnderAllAgentList',
        method: 'post',
        data
    })
}
// 指定代理交易查询
export function selectPosOrderByld(data) {
    return request({
        url: '/posOrder/selectPosOrderById',
        method: 'post',
        data
    })
}
// 查询终端划拨代理列表
export function selectChannelUnderAgentList(data) {
    return request({
        url: '/posAgent/selectChannelUnderAgentList',
        method: 'post',
        data
    })
}
// 展业素材
export function selectAgentPublicizeInf(data) {
    return request({
        url: '/posAgent/selectAgentPublicizeInf',
        method: 'post',
        data
    })
}
// 排行榜唤醒
export function selectActiveRanking(data) {
    return request({
        url: '/agentRanking/selectActiveRanking',
        method: 'post',
        data
    })
}
//交易排行榜
export function selectTradeRanking(data) {
    return request({
        url: '/agentRanking/selectTradeRanking',
        method: 'post',
        data
    })
}
//收益排行榜
export function selectProfitRanking(data) {
    return request({
        url: '/agentRanking/selectProfitRanking',
        method: 'post',
        data
    })
}
//绑定排行榜
export function selectBindRanking(data) {
    return request({
        url: '/agentRanking/selectBindRanking',
        method: 'post',
        data
    })
}
//查看商户
export function selectMerchantSummary(data) {
    return request({
        url: '/posMerSum/selectMerchantSummary',
        method: 'post',
        data
    })
}
//查询商户渠道
export function selectMerchantChannel(data) {
    return request({
        url: '/posMerchant/selectMerchantChannel',
        method: 'post',
        data
    })
}
//服务商查询统计
export function selectAgentData(data) {
    return request({
        url: '/posAgentSum/selectAgentData',
        method: 'post',
        data
    })
}
//终端总数
export function selectTerListByChannel(data) {
    return request({
        url: '/posTer/selectTerListByChannel',
        method: 'post',
        data
    })
}
//唤醒预警
export function selectTerAlertList(data) {
    return request({
        url: '/posTer/selectTerAlertList',
        method: 'post',
        data
    })
}
//数据分析
export function selectLocalAgentData(data) {
    return request({
        url: 'posAgentSum/selectLocalAgentData',
        method: 'post',
        data
    })
}
//代理展业我的模板
export function selectAgentTemplatePosChannelRateList(data) {
    return request({
        url: 'agentTemplateRate/selectAgentTemplatePosChannelRateList',
        method: 'post',
        data
    })
}
//新增模板
export function insertAgentTemplatePosChannelRate(data) {
    return request({
        url: 'agentTemplateRate/insertAgentTemplatePosChannelRate',
        method: 'post',
        data
    })
}
//删除模板
export function deleteAgentTemplatePosChannelRateById(data) {
    return request({
        url: 'agentTemplateRate/deleteAgentTemplatePosChannelRateById',
        method: 'post',
        data
    })
}
//详情模板
export function selectAgentTemplatePosChannelRateById(data) {
    return request({
        url: 'agentTemplateRate/selectAgentTemplatePosChannelRateById',
        method: 'post',
        data
    })
}
//修改模板
export function updateAgentTemplatePosChannelRate(data) {
    return request({
        url: 'agentTemplateRate/updateAgentTemplatePosChannelRate',
        method: 'post',
        data
    })
}
//我的成本
export function selectAgentChannelRateSubsidyRate(data) {
    return request({
        url: 'posAgent/selectAgentChannelRateSubsidyRate',
        method: 'post',
        data
    })
}
//签约接口
export function agentYhsSign(data) {
    return request({
        url: 'agent/agentYhsSign',
        method: 'post',
        data
    })
}
//修改签约状态
export function updateAgentYhsSignStatus(data) {
    return request({
        url: 'agent/updateAgentYhsSignStatus',
        method: 'post',
        data
    })
}
//修改实名认证
export function agentReal(data) {
    return request({
        url: 'agent/agentReal',
        method: 'post',
        data
    })
}
// 身份证OCR
export function alOcr(data) {
	return request({
		url: '/posCommon/alOcr',
		method: 'post',
		data
	})
}
// 新增模板查询是否有二次流量卡选项
export function selectAgentCanShow(data) {
	return request({
		url: '/agentTemplateRate/selectAgentCanShow',
		method: 'post',
		data
	})
}
// 代理下级商户
export function selectMerChannelListAllByAgent(data) {
	return request({
		url: '/posMerchant/selectMerChannelListAllByAgent',
		method: 'post',
		data
	})
}
//标签列表
export function selectAgentTag(data) {
	//传入对应的配置对象
	return request({
		url: 'posAgent/selectAgentTag', //接口地址
		method: 'post', //请求方法
		data //请求接口需要的参数
	})
}
//设置标签
export function setAgentTag(data) {
	//传入对应的配置对象
	return request({
		url: 'posAgent/setAgentTag', //接口地址
		method: 'post', //请求方法
		data //请求接口需要的参数
	})
}
//分红记录
export function selectAgentDividendRecord(data) {
	//传入对应的配置对象
	return request({
		url: 'posAgent/selectAgentDividendRecord', //接口地址
		method: 'post', //请求方法
		data //请求接口需要的参数
	})
}

//奖励记录
export function selectAgentRewardRecord(data) {
	//传入对应的配置对象
	return request({
		url: 'posAgent/selectAgentRewardRecord', //接口地址
		method: 'post', //请求方法
		data //请求接口需要的参数
	})
}
//  POS终端划拨记录
export function selectPosHisInf(data) {
	return request({
		url: '/posTer/selectPosHisInf',
		method: 'post',
		data
	})
}
//云智鑫签约接口
export function agentYzxSign(data) {
    return request({
        url: 'agent/agentYzxSign',
        method: 'post',
        data
    })
}
//查询云智鑫签约状态
export function updateAgentYzxSignStatus(data) {
    return request({
        url: 'agent/updateAgentYzxSignStatus',
        method: 'post',
        data
    })
}